#!/bin/bash
java -jar $DHTFS_HOME/bin/DhtDriver.jar MetaServer $DHTFS_HOME/conf/global.conf >> $DHTFS_HOME/log/log.txt 2>&1 &
sleep 3
for slave in `cat $DHTFS_HOME/bin/slaves`
do
        ssh $slave "java -jar $DHTFS_HOME/bin/DhtDriver.jar DataServer $DHTFS_HOME/conf/global.conf >> $DHTFS_HOME/log/log.txt 2>&1 &"
done
tail -f $DHTFS_HOME/log/log.txt
